<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <title>{cscms:title}</title>
    <meta name="Keywords" content="{cscms:keywords}" />
    <meta name="Description" content="{cscms:description}" />
    <link rel="shortcut icon" href="{cscms:path}favicon.ico" />
    <link rel="stylesheet" href="{cscms:webpath}packs/font/font.css">
    <link rel="stylesheet" type="text/css" href="{cscms:tempurl}css/user.css"/>
    <script type="text/javascript" src="{cscms:tempurl}js/user.js"></script>
    <script type="text/javascript" src="{cscms:tempurl}js/jquery.emot.js"></script>
</head>
<body>
    {cscms:head}
    {cscms:right}
    <div class="layui-collapse" lay-accordion>
        <div class="layui-colla-item">
            <h2 class="layui-colla-title">发布说说</h2>
            <div class="layui-colla-content layui-show" style="height: 120px;padding: 10px">
                <div class="user_info">
                    <div class="doing">
                        <div id="note" contenteditable="true" class="blogInput" name="note" style="display: block;"></div>
                    </div>
                    <div id="act" class="act" style="display: block;">
                        <div id="emot_note" class="emot" to="note"></div>
                        <!--表情-->
                        <div class="button">
                            <button op="all" class="layui-btn layui-btn-mini layui-btn-warm send" onclick="user.blog_send()">发布</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-tab layui-tab-card" lay-filter="dt1">
	    <ul class="layui-tab-title" style="height: 41px">
	        <li {if:'{cscms:fid}'!='all'}class="layui-this"{end if}><a href="[user:url userlink=blog]">我的说说</a></li>
	        <li {if:'{cscms:fid}'=='all'}class="layui-this"{end if}><a href="[user:url userlink=blog,index,all]">大家都在说</a></li>
	    </ul>
	    <div class="layui-tab-content" style="padding:10px 15px">
	        <div class="layui-tab-item layui-show">
		        {cscms:dt table="blog" pagesize="10" uid="auto" sort="addtime" order="desc"}
		        	<li class="dt-one" id="del[dt:id]">
		        		<a target="_blank" class="dt-img" href="[dt:url ulink=index]"><img src="[dt:user zd=logo]?size=60*60"></a>
		        		<div class="dt-neir">
		        			<div class="dt-time">[dt:addtime style=time]</div>
		        			{if:'{cscms:fid}'=='my'}<div title="删除" onclick="user.blog_del([dt:id])" class="dt-del"><i class="fa fa-trash-o"></i></div>{end if}
		        			<div class="dt-title">
		        				{if:'{cscms:fid}'!='all'}<a href="javascript:;">您说：</a>{else}<a target="_blank" href="[dt:url ulink=index]">[dt:user zd=nichen]&nbsp;说：</a>{end if}
		        			</div>
		        			<div class="dt-nl">
		        				[dt:neir]
		        			</div>
		        		</div>
		        	</li>
		        {/cscms:dt}
		        {if:{cscms:pagedata}==0}<div class="zanwu">暂无相关数据！</div>{end if}
		        <div class="page" style="text-align: center;{if:{cscms:pagecout}<2}display: none;{end if}">
                    <div class="layui-box layui-laypage layui-laypage-default" id="layui-laypage-0">
                        <a href="{cscms:pageup}" class="layui-laypage-last" title="上一页">上一页</a>
                        {cscms:pagenum len=3}
                        <a href="{cscms:pagedown}" class="layui-laypage-next">下一页</a>
                    </div>
               </div>
	        </div>
	    </div>
	</div>
    {cscms:bottom}
</body>
<script type="text/javascript">
    var send_num=0;
    $(document).ready(function() {
       user.blog(); 
    });
</script>
</html>